const systemInfo = function () {
  const systemInfomations = uni.getSystemInfoSync() // 设备系统信息
  const scaleFactor = 750 / systemInfomations.windowWidth // 机型适配比例系数
  const windowHeight = systemInfomations.windowHeight * scaleFactor // 当前机型-屏幕高度
  const windowWidth = systemInfomations.windowWidth * scaleFactor // 当前机型-屏幕宽度
  const statusBarHeight = systemInfomations.statusBarHeight * scaleFactor // 状态栏高度
  const platform = systemInfomations.platform // 运行平台
  const uniPlatform = systemInfomations.uniPlatform // 运行环境
  return {
    scaleFactor,
    windowHeight,
    windowWidth,
    statusBarHeight,
    platform,
    uniPlatform,
  }
}

export { systemInfo }
